// Copyright (C) 2012 by InfoDes

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.

// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

#include "logger_not_set_state.hpp"

using std::unique_ptr;
using std::string;

namespace bobs
{
  namespace services
  {
    void logger_not_set_state::log_msg(const string &msg, logger &logger)
    {
    }

    void logger_not_set_state::set_log(unique_ptr<abstract_log> log, logger &logger)
    {
      logger.set_state(new logger_set_state(log));
    }

    unique_ptr<abstract_log> logger_not_set_state::log()
    {
      return nullptr;
    }
  }
}
